Skip to content

Conversation

@lforst
Copy link

@lforst lforst commented May 5, 2023

@lforst lforst force-pushed the lforst-new-options branch from 80dd6c7 to ba9a81d Compare May 5, 2023 12:14
@lforst lforst requested review from AbhiPrasad, Lms24 and mydea May 8, 2023 08:01
Copy link
Member

@AbhiPrasad AbhiPrasad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

Copy link
Member

@Lms24 Lms24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Just had some minor comments but nothing blocking.

Comment on lines +169 to +178
if (options.sourcemaps) {
if (!options.authToken) {
logger.warn("No auth token provided. Will not upload source maps.");
} else if (!options.org) {
logger.warn("No org provided. Will not upload source maps.");
} else if (!options.project) {
logger.warn("No project provided. Will not upload source maps.");
} else if (!options.sourcemaps.assets) {
logger.warn("No assets defined. Will not upload source maps.");
} else {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

l: Personally I'd prefer to extract this validation to a function (per plugin) to declutter this one a little but feel free to leave it as is as.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This currently has a use for TS. We could put it into a helper but I am not sure if it will actually simplify the code by a lot. Gonna leave this for now.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh I see, yeah, then let's just leave it.

hub.setTag("add-deploy", true);
}

// Miscelaneous options
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

super-l: Should we add a tag for the new deleteAfterUpload option? Might be interesting to see how often it is used?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't have it implemented yet but it probably doesn't hurt to add right now!

@lforst lforst changed the title ref(core): Switch to updated options ref(core): Switch to v2 options May 8, 2023
@lforst lforst enabled auto-merge (squash) May 8, 2023 11:57
@lforst lforst mentioned this pull request May 8, 2023
@lforst lforst merged commit d1c6972 into main May 8, 2023
@lforst lforst deleted the lforst-new-options branch May 8, 2023 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants